package cn.com.xxlibrary.orm;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 管理员信息
 * 
 * @author 学刚
 * 
 */
@Entity
@Table(name = "t_managerInfo")
public class ManagerInfoBean {

	/**
	 * 主键
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "manId")
	private int manId;

	/**
	 * 登录名
	 */
	@Column(name = "manLoginName")
	private String manLoginName;

	/**
	 * 登陆密码
	 */
	@Column(name = "manPassword")
	private String manPassword;

	/**
	 * 管理员姓名
	 */
	@Column(name = "manName")
	private String manName;

	/**
	 * 性别
	 */
	@Column(name = "manSex")
	private String manSex;

	/**
	 * 所属院系
	 */
	@ManyToOne
	@JoinColumn(name = "manDepartment")
	private DepartmentBean manDepartment;

	/**
	 * 类型
	 */
	@ManyToOne
	@JoinColumn(name = "manType")
	private ManagerTypeBean manType;

	/**
	 * 创建时间
	 */
	@Column(name = "manCreateTime")
	private String manCreateTime;

	/**
	 * 最后登录时间
	 */
	@Column(name = "manLastLoginTime")
	private String manLastLoginTime;

	/**
	 * 状态: 1-可用; 0-禁用
	 */
	@Column(name = "manState")
	private int manState;

	/**
	 * 联系电话
	 */
	@Column(name = "manTEL")
	private String manTEL;
	
	public int getManId() {
		return manId;
	}

	public void setManId(int manId) {
		this.manId = manId;
	}

	public String getManLoginName() {
		return manLoginName;
	}

	public void setManLoginName(String manLoginName) {
		this.manLoginName = manLoginName;
	}

	public String getManPassword() {
		return manPassword;
	}

	public void setManPassword(String manPassword) {
		this.manPassword = manPassword;
	}

	public String getManName() {
		return manName;
	}

	public void setManName(String manName) {
		this.manName = manName;
	}

	public String getManSex() {
		return manSex;
	}

	public void setManSex(String manSex) {
		this.manSex = manSex;
	}

	public DepartmentBean getManDepartment() {
		return manDepartment;
	}

	public void setManDepartment(DepartmentBean manDepartment) {
		this.manDepartment = manDepartment;
	}

	public ManagerTypeBean getManType() {
		return manType;
	}

	public void setManType(ManagerTypeBean manType) {
		this.manType = manType;
	}

	public String getManCreateTime() {
		return manCreateTime;
	}

	public void setManCreateTime(String manCreateTime) {
		this.manCreateTime = manCreateTime;
	}

	public String getManLastLoginTime() {
		return manLastLoginTime;
	}

	public void setManLastLoginTime(String manLastLoginTime) {
		this.manLastLoginTime = manLastLoginTime;
	}

	public int isManState() {
		return manState;
	}

	public void setManState(int manState) {
		this.manState = manState;
	}

	public int getManState() {
		return manState;
	}

	public String getManTEL() {
		return manTEL;
	}

	public void setManTEL(String manTEL) {
		this.manTEL = manTEL;
	}


}
